import request from '@/utils/request'

/**
 * 根据文件树id查询流程图数据
 * @param filePathId
 */
export function findFlowJsonDataByFilePathId(filePathId: number) {
    return request({
        url: '/fs/flow-json-data/file-path-id/' + filePathId,
        method: "get",
    })
}

/**
 * 保存||更新 流程图数据
 * @param data
 */
export function insertFlowJsonData(data: any) {
    return request({
        url: '/fs/flow-json-data/insert-or-update',
        method: "post",
        data: data
    })
}

/**
 * 删除流程图数据
 * @param id
 */
export function deleteFlowJsonData(id: number) {
    return request({
        url:'/fs/flow-json-data/'+id,
        method:'delete'
    })
}




